package cn.demoncat.util.mysql.entity;

/**
 * Mysql.InnoDB事务
 *
 * SELECT * FROM INFORMATION_SCHEMA.INNODB_TRX;
 *
 * @author 延晓磊
 * @since 2020年10月09日
 */
public class InnodbTrx {

    // 事务ID
    private String trxId;
    // 事务状态
    private String trxState;
    // 事务开始时间
    private String trxStarted;
    // 事务请求的锁ID
    private String reqLockId;
    // 事务开始等待的时间
    private String trxWaitStarted;
    // 事务线程ID
    private String threadId;
    // 事务执行语句
    private String trxQuery;
    // 事务当前操作
    private String trxOperation;
    // 事务使用的表数
    private String trxTableUse;
    // 事务加锁的表
    private String trxTableLock;
    // 事务加锁的行
    private String trxRowLock;
    // 事务修改的行
    private String trxRowUpd;
    // 事务隔离级别
    private String trxIsolation;

    public InnodbTrx(String trxId, String trxState, String trxStarted, String reqLockId, String trxWaitStarted, String threadId, String trxQuery, String trxOperation, String trxTableUse, String trxTableLock, String trxRowLock, String trxRowUpd, String trxIsolation) {
        this.trxId = trxId;
        this.trxState = trxState;
        this.trxStarted = trxStarted;
        this.reqLockId = reqLockId;
        this.trxWaitStarted = trxWaitStarted;
        this.threadId = threadId;
        this.trxQuery = trxQuery;
        this.trxOperation = trxOperation;
        this.trxTableUse = trxTableUse;
        this.trxTableLock = trxTableLock;
        this.trxRowLock = trxRowLock;
        this.trxRowUpd = trxRowUpd;
        this.trxIsolation = trxIsolation;
    }

    public InnodbTrx() {
        super();
    }

    public String getTrxId() {
        return trxId;
    }

    public void setTrxId(String trxId) {
        this.trxId = trxId;
    }

    public String getTrxState() {
        return trxState;
    }

    public void setTrxState(String trxState) {
        this.trxState = trxState;
    }

    public String getTrxStarted() {
        return trxStarted;
    }

    public void setTrxStarted(String trxStarted) {
        this.trxStarted = trxStarted;
    }

    public String getReqLockId() {
        return reqLockId;
    }

    public void setReqLockId(String reqLockId) {
        this.reqLockId = reqLockId;
    }

    public String getTrxWaitStarted() {
        return trxWaitStarted;
    }

    public void setTrxWaitStarted(String trxWaitStarted) {
        this.trxWaitStarted = trxWaitStarted;
    }

    public String getThreadId() {
        return threadId;
    }

    public void setThreadId(String threadId) {
        this.threadId = threadId;
    }

    public String getTrxQuery() {
        return trxQuery;
    }

    public void setTrxQuery(String trxQuery) {
        this.trxQuery = trxQuery;
    }

    public String getTrxOperation() {
        return trxOperation;
    }

    public void setTrxOperation(String trxOperation) {
        this.trxOperation = trxOperation;
    }

    public String getTrxTableUse() {
        return trxTableUse;
    }

    public void setTrxTableUse(String trxTableUse) {
        this.trxTableUse = trxTableUse;
    }

    public String getTrxTableLock() {
        return trxTableLock;
    }

    public void setTrxTableLock(String trxTableLock) {
        this.trxTableLock = trxTableLock;
    }

    public String getTrxRowLock() {
        return trxRowLock;
    }

    public void setTrxRowLock(String trxRowLock) {
        this.trxRowLock = trxRowLock;
    }

    public String getTrxRowUpd() {
        return trxRowUpd;
    }

    public void setTrxRowUpd(String trxRowUpd) {
        this.trxRowUpd = trxRowUpd;
    }

    public String getTrxIsolation() {
        return trxIsolation;
    }

    public void setTrxIsolation(String trxIsolation) {
        this.trxIsolation = trxIsolation;
    }
}
